package jnpf.util.context;

import jnpf.util.ServletUtil;
import java.util.Objects;

/**
 *
 * @date 2023/9/11 00:00
 */
public class RequestContext {

    public static boolean isVue3(){
        //2, 3
        return Objects.equals(ServletUtil.getHeader("vue-version"), "3");
    }

    public static boolean isOrignPc(){
        //pc, app
        return !Objects.equals(ServletUtil.getHeader("jnpf-origin"), "app");
    }

}
